/**
 * Copyright(c): 2017 com.mjduan All rights reserved.
 * 项目名：springcloud-eureka
 * 注意：未经作者允许，不得外传
 */
package com.mjduan.springcloud.project.consumer1.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.mjduan.springcloud.project.consumer1.service.AddService;

/**
 * @author dmj1161859184@126.com mjduan 2018-05-31 15:43
 * @version 1.0
 * @since 1.0
 */
@RestController
@RequestMapping(value = "/consumer1")
public class AddController {
    @Autowired
    private AddService addService;

    @RequestMapping(value = "/add",method = RequestMethod.GET)
    public Integer add() {
        return addService.add(10,25);
    }
}
